<script setup>
import {reactive} from "vue";

const data = reactive({
  tableData: []
})
</script>

<template>
  <div class="main">
    <div class="search-bar">
      <el-form inline>
        <el-form-item>
          <el-input placeholder="请输入账号"></el-input>
        </el-form-item>
        <el-form-item>
          <el-button type="primary">搜索</el-button>
        </el-form-item>
      </el-form>
    </div>
    <el-table :data="data.tableData" size="small">
      <el-table-column prop="id" label="ID"></el-table-column>
      <el-table-column prop="username" label="用户名"></el-table-column>
      <el-table-column label="用户名">
        <template #default>
          <el-button type="text" size="small">编辑</el-button>
          <el-button type="text" size="small">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<style scoped lang="less">
.main {
  padding: 20px;
}
</style>